home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / bm.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  6KB  |  142 lines

  1. /*
  2.  * $Id: bm.h,v 0.91 1994/02/20 00:53:41 zhao Pre-Release $
  3.  *
  4.  *. This file is part of BIT shareware package. After the two weeks of
  5.  *  free evaluation period, you are encouraged (required) to register
  6.  *  your copy for a small registration fee, which is $35 for personal use
  7.  *  and $50 for commercial, government and institutional use.
  8.  *
  9.  *  Copyright(c) 1993, 1994 by T.C. Zhao.
  10.  *  All rights reserved.
  11.  *
  12.  *  Permission to use, copy, and distribute this software in its entirety
  13.  *  for non-commercial purposes is hereby granted, provided that the
  14.  *  above shareware and copyright notices and this permission notice
  15.  *  appear in all copies and their documentation.
  16.  *
  17.  *  This software may be modified for your own use, but modified versions
  18.  *  may not be distributed without prior consent of the author.
  19.  *
  20.  *  This software is provided "as is" without expressed or implied
  21.  *  warranty of any kind.
  22.  *
  23.  *.
  24.  *
  25.  * Bitmaps for marking
  26.  */
  27. #ifndef BM_ICLUDED
  28. #define BM_ICLUDED
  29.  
  30. #define BM_W  17
  31. #define BM_H  17
  32.  
  33. /* a horizontal line */
  34. static char line_bits[] =
  35. {
  36.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  37.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  38.     0xfe, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  39.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  40.     0x00, 0x00, 0x00};
  41.  
  42. /* A plus (+) sign */
  43. static char plus_bits[] =
  44. {
  45.     0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00,
  46.     0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00,
  47.     0xff, 0xff, 0x01, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00,
  48.     0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00,
  49.     0x00, 0x01, 0x00};
  50.  
  51.  
  52. /* Distance indicater |-----| */
  53. static char hdist_bits[] =
  54. {
  55.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  56.     0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01,
  57.     0xff, 0xff, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01,
  58.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  59.     0x00, 0x00, 0x00};
  60.  
  61. /* an open circle */
  62. static char circ_bits[] =
  63. {
  64.     0xc0, 0x07, 0x00, 0xf0, 0x1f, 0x00, 0x3c, 0x78, 0x00, 0x0c, 0x60, 0x00,
  65.     0x06, 0xc0, 0x00, 0x06, 0xc0, 0x00, 0x03, 0x80, 0x01, 0x03, 0x80, 0x01,
  66.     0x03, 0x80, 0x01, 0x03, 0x80, 0x01, 0x03, 0x80, 0x01, 0x06, 0xc0, 0x00,
  67.     0x06, 0xc0, 0x00, 0x0c, 0x60, 0x00, 0x3c, 0x78, 0x00, 0xf0, 0x1f, 0x00,
  68.     0xc0, 0x07, 0x00};
  69.  
  70. /* a filled circle */
  71. static char fcirc_bits[] =
  72. {
  73.     0xc0, 0x07, 0x00, 0xf0, 0x1f, 0x00, 0xfc, 0x7f, 0x00, 0xfc, 0x7f, 0x00,
  74.     0xfe, 0xff, 0x00, 0xfe, 0xff, 0x00, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01,
  75.     0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xfe, 0xff, 0x00,
  76.     0xfe, 0xff, 0x00, 0xfc, 0x7f, 0x00, 0xfc, 0x7f, 0x00, 0xf0, 0x1f, 0x00,
  77.     0xc0, 0x07, 0x00};
  78.  
  79. /* a rectangle */
  80. static char rect_bits[] =
  81. {
  82.     0xff, 0xff, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01,
  83.     0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01,
  84.     0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01,
  85.     0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x00, 0x01,
  86.     0xff, 0xff, 0x01};
  87.  
  88. /* a filled rectangle */
  89. static char frect_bits[] =
  90. {
  91.     0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01,
  92.     0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01,
  93.     0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01,
  94.     0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xff, 0xff, 0x01,
  95.     0xff, 0xff, 0x01};
  96.  
  97. /* a open triangle */
  98. static char tri_bits[] =
  99. {
  100.     0x00, 0x01, 0x00, 0x00, 0x03, 0x00, 0x80, 0x02, 0x00, 0x80, 0x04, 0x00,
  101.     0x40, 0x04, 0x00, 0x40, 0x08, 0x00, 0x20, 0x08, 0x00, 0x20, 0x10, 0x00,
  102.     0x10, 0x10, 0x00, 0x10, 0x20, 0x00, 0x08, 0x20, 0x00, 0x08, 0x40, 0x00,
  103.     0x04, 0x40, 0x00, 0x04, 0x80, 0x00, 0x02, 0x80, 0x00, 0x02, 0x00, 0x01,
  104.     0xff, 0xff, 0x01};
  105.  
  106. /* a filled triangle */
  107. static char ftri_bits[] =
  108. {
  109.     0x00, 0x01, 0x00, 0x00, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x07, 0x00,
  110.     0xc0, 0x07, 0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, 0xe0, 0x1f, 0x00,
  111.     0xf0, 0x1f, 0x00, 0xf0, 0x3f, 0x00, 0xf8, 0x3f, 0x00, 0xf8, 0x7f, 0x00,
  112.     0xfc, 0x7f, 0x00, 0xfc, 0xff, 0x00, 0xfe, 0xff, 0x00, 0xfe, 0xff, 0x01,
  113.     0xff, 0xff, 0x01};
  114.  
  115. /* a open 5-sided star */
  116. static char star_bits[] =
  117. {
  118.     0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x80, 0x02, 0x00, 0x80, 0x02, 0x00,
  119.     0x80, 0x02, 0x00, 0x40, 0x04, 0x00, 0x7e, 0xfc, 0x00, 0x04, 0x40, 0x00,
  120.     0x18, 0x30, 0x00, 0x20, 0x08, 0x00, 0x20, 0x09, 0x00, 0x80, 0x12, 0x00,
  121.     0x50, 0x14, 0x00, 0x30, 0x38, 0x00, 0x18, 0x20, 0x00, 0x00, 0x00, 0x00,
  122.     0x00, 0x00, 0x00};
  123.  
  124. /* a filled 5-sided star */
  125. static char fstar_bits[] =
  126. {
  127.     0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00,
  128.     0x80, 0x03, 0x00, 0xc0, 0x07, 0x00, 0xfe, 0xff, 0x00, 0xfc, 0x7f, 0x00,
  129.     0xf8, 0x3f, 0x00, 0xf0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, 0xe0, 0x1f, 0x00,
  130.     0x70, 0x1c, 0x00, 0x38, 0x38, 0x00, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00,
  131.     0x00, 0x00, 0x00};
  132.  
  133. /* a line with a small triangle on on end */
  134. static char arrow_bits[] =
  135. {
  136.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  137.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0xe0, 0x00,
  138.     0xff, 0xff, 0x01, 0x00, 0xe0, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00,
  139.     0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  140.     0x00, 0x00, 0x00};
  141. #endif
  142.